import java.security.MessageDigest;
import sun.misc.BASE64Encoder;

//byte -> hex 
public class MD5Test1 {



	private static String bytesToHex(byte[] b) {
        char hexDigit[] = {
			'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 
			'a', 'b', 'c', 'd', 'e', 'f'
		};
		
		StringBuffer buf = new StringBuffer();
		for (int i=0 ; i<b.length ; i++) {
		    buf.append(hexDigit[b[i] >> 4 & 0xf]);
		    buf.append(hexDigit[b[i] & 0xf]);
		}
		
		return buf.toString();
    }
  
  

	public static void main(String[] args) throws Exception {
		
		String imsi = bytesToHex(args[0].getBytes());
		System.out.println(imsi);
	}
}

